<tagLib name="strends" />
<include file="Public:header" />
<style type="text/css">
	.tags_ul li{
		float:left;
		margin: 5px 0 0 5px;
		padding: 5px 5px 4px 5px;
		border: solid 1px #999;
		white-space: nowrap;
	}
</style>
<div class="handle-btns">
	<strends:linkBtn text="{%RETURN_LIST}" href="{:Cookie::get('returnUrl')}" />
</div>
<form method='post' id="form" name="form" action="{:U(MODULE_NAME.'/update')}" enctype="multipart/form-data">
<table cellpadding="4" cellspacing="0" border="0" class="table-form">
	<tr>
		<th width="150">{%TITLE}</th>
		<td><input type="text" class="textinput" name="title" value="{$vo.title}" style="width:400px;" /></td>
	</tr>
		
	<tr>
		<th>{%SOURCE}</th>
		<td><input type="text" class="textinput" name="source" value="{$vo.source}" size="60" /></td>
	</tr>		
	<tr>
		<th>{%SORT}</th>
		<td>
			<input type="text" class="textinput" name="sort"  name="sort" rows="5" value="{$vo.sort}"/>
		</td>
	</tr>
	
	<tr>
		<th>{%GRID}</th>
		<td>
			<textarea class="areainput" name="grid" rows="5">{$vo.grid}</textarea>
		</td>
	</tr>
	
	<tr class="act">
		<th>&nbsp;</th>
		<td>
			<input type="hidden" name="id" value="{$vo.id}" />
			<input type="submit" class="submit_btn" value="{%SUBMIT}" />
			<input type="reset" class="reset_btn" value="{%RESET}" />
		</td>
	</tr>
</table>
</form>
<script type="text/javascript">
jQuery(function($){
	$("#flashCheck").change(function(){
		if(this.checked)
			$(".flash_img").show();
		else
			$(".flash_img").hide();
	});
	
	$("#bestCheck").change(function(){
		if(this.checked)
			$(".best_img").show();
		else
			$(".best_img").hide();
	});
	var num = $("input[name=is_grid]:checked").val();
	show_grid(num);
});
function show_grid(num){
	if(num==1){
		$('#show_grid').show();
	}else{
		$('#show_grid').hide();
	}
}
</script>
<include file="Public:footer" />